package com.emotion.recognition.server.som;

public class FeatureMap {

	public FeatureNode[][] nodes;
	private int mapSize;
	private double radius;

	public FeatureMap(int mapSize, int inputSize, double radius) {
		nodes = new FeatureNode[mapSize][mapSize];
		this.mapSize = mapSize;
		this.radius = radius;

		for (int i = 0; i < mapSize; ++i) {
			for (int j = 0; j < mapSize; ++j) {
				nodes[i][j] = new FeatureNode(i, j, inputSize);
			}
		}
	}

	public int getMapSize() {
		return this.mapSize;
	}

	public double getRadius() {
		return this.radius;
	}

	public void setRadius(double radius) {
		this.radius = radius;
	}
}
